package com.tiancheng.trade.settlement.model.settlement;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tiancheng.trade.settlement.model.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 清分对账结果表（成功和异常的都在这里
 *
 * @author chris.shao
 * @since 2024/4/20
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("settlement_old_system")
public class SettlementOldSystem extends BaseEntity {

    private String subMchId;

    private String merchantCode;

    private String merchantName;

    private String productCode;

    private String productName;

    private String orderSource;
    private String bankOrderId;
    private String orderId;

    private String subOrderId;

    private String payChannelCode;

    private Integer clearAmount;

    private Integer bankClearAmount;

    private String clearRuleCode;

    private LocalDateTime payTime;

    private String clearBatchNo;

    private LocalDateTime verifiedTime;


    private LocalDateTime shouldClearDate;

    private LocalDateTime bankClearDate;

    private LocalDateTime shouldBillDate;

    private LocalDateTime billDate;

    private String payAcct;

    private String payAcctName;

    private String colAcct;

    private String colAcctName;

    private BigDecimal rate;

    private Integer serviceCharge;

    private String status;

    @TableField(exist = false)
    private String statusCn;

    private String costType;

    @TableField(exist = false)
    private String costTypeCn;

    private Integer billCount = 0;

    private LocalDateTime errorHandleTime;
    private String errorRemark;
    private String errorHandle;

    private Integer errorAmount;
    private Integer errorType;
    private LocalDateTime completeDate;
    private Boolean isException;
    private String remark;


}